* nsfns.m: Declare image_cache_refcount if GLYPH_DEBUG.
authorJan D. <jan.h.d@swipnet.se>
Sat, 5 Nov 2011 12:25:01 +0000 (13:25 +0100)
committerJan D. <jan.h.d@swipnet.se>
Sat, 5 Nov 2011 12:25:01 +0000 (13:25 +0100)
commit965c51221846d90214626fa572a0f3d8e0d4d6d7
treef0f456a37b5aa37803965e0f8fc64982ef7679e7
parente0d9ed5077d5aa4831448ca593d72a37c6567b04
* nsfns.m: Declare image_cache_refcount if GLYPH_DEBUG.
(unwind_create_frame): New function.
(Fx_create_frame): Restructure code to be more similar to the one in
xfns.c.  Call record_unwind_protect with unwind_create_frame (Bug#9943).
Initialize image_cache_refcount if GLYPH_DEBUG (Bug#9943).
Move terminal->reference_count++ just before making the frame official
(Bug#9943).

* nsterm.m (x_free_frame_resources): New function.
(x_destroy_window): Move code to x_free_frame_resources.
src/ChangeLog
src/nsfns.m
src/nsterm.m